/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.TessBot.subsystems;

import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.TessBot.RobotMap;
import edu.wpi.first.wpilibj.TessBot.commands.Drive;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 * @author programmer
 */
public class drivetrain extends Subsystem {
    private Talon leftMotor1 = new Talon(RobotMap.leftMotor1);
    //private Talon leftMotor2 = new Talon(RobotMap.leftMotor2);
    private Talon rightMotor1 = new Talon(RobotMap.rightMotor1);
    //private Talon rightMotor2 = new Talon(RobotMap.rightMotor2);
    private RobotDrive robotDrive = new RobotDrive(leftMotor1, rightMotor1);
    protected void initDefaultCommand() { 
        setDefaultCommand(new Drive());
        
        
        
       
    }
    
    
    public void tankdrive(double left, double right){
        robotDrive.tankDrive(left, right);
       
    }
    
}
